﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExchangeAuditEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.ExchangeAudit.ExchangeAuditEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script defer="defer" src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style type="text/css">
        #editTable
        {
            background-color: #000000;            
        }
        #editTable td
        {
            background-color: #ffffff;
            padding: 10px 10px 10px 10px;
        }
    </style>
    <script type="text/javascript">
        function showPage1() {
            var retValue = window.showModalDialog(encodeURI("SelectDispatch.aspx"), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtSourceDispatchCode.ClientID%>').value = retValue;
                document.getElementById('<%=hidSourceDispatchCode.ClientID%>').value = retValue;
            }
            return false;
        }

        function showPage2() {
            var retValue = window.showModalDialog(encodeURI("SelectDispatch.aspx"), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtTargeDispatchCode.ClientID%>').value = retValue;
                document.getElementById('<%=hidTargeDispatchCode.ClientID%>').value = retValue;
            }
            return false;
        }
        function showPage3() {
            var dispatchCode = document.getElementById('<%=hidSourceDispatchCode.ClientID%>').value
            var retValue = window.showModalDialog(encodeURI("SelectDispatchMissile.aspx?DispatchCode=" + dispatchCode), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtSourceMissileCode.ClientID%>').value = retValue;
                document.getElementById('<%=hidSourceMissileCode.ClientID%>').value = retValue;
            }
            return false;
        }
        function showPage4() {
            var dispatchCode = document.getElementById('<%=hidTargeDispatchCode.ClientID%>').value
            var retValue = window.showModalDialog(encodeURI("SelectDispatchMissile.aspx?DispatchCode=" + dispatchCode), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtTargeMissileCode.ClientID%>').value = retValue;
                document.getElementById('<%=hidTargeMissileCode.ClientID%>').value = retValue;
            }
            return false;
        }
        function showPage5() {
            var missileCode = document.getElementById('<%=hidSourceMissileCode.ClientID%>').value
            var retValue = window.showModalDialog(encodeURI("SelectDispatchMissileProcess.aspx?MissileCode=" + missileCode), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtSourceProcess.ClientID%>').value = retValue;
                document.getElementById('<%=hidSourceProcess.ClientID%>').value = retValue;
            }
            return false;
        }
        function showPage6() {
            var missileCode = document.getElementById('<%=hidTargeMissileCode.ClientID%>').value
            var retValue = window.showModalDialog(encodeURI("SelectDispatchMissileProcess.aspx?MissileCode=" + missileCode), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                document.getElementById('<%=txtTargeProcess.ClientID%>').value = retValue;
                document.getElementById('<%=hidTargeProcess.ClientID%>').value = retValue;
            }
            return false;
        }
    </script>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div>
    <table id="editTable" width="800px" border="0" cellpadding="0" cellspacing="1" align="center">
      <tr>
        <td colspan="4" align="center">
            <div style="font-size:20px">串件审批单(一般)</div>
            <div style="text-align:left";>编号：<asp:Label ID="lblCode" runat="server" ></asp:Label></div>
        </td>        
      </tr>
      <tr>
        <td width="100px">源派工单号</td>
        <td>
            <asp:TextBox ID="txtSourceDispatchCode" runat="server" Width="150px"></asp:TextBox>
            <input id="btn1" onclick="showPage1()" type="button" value="选择" /><asp:HiddenField 
                ID="hidSourceDispatchCode" runat="server" />
          </td>
        <td width="100px">目标派工单号</td>
        <td><asp:TextBox ID="txtTargeDispatchCode" runat="server" Width="150px"></asp:TextBox>
            <input id="btn2" onclick="showPage2()" type="button" value="选择" /><asp:HiddenField 
                ID="hidTargeDispatchCode" runat="server" />
          </td>
      </tr>
      <tr>
        <td>源弹号</td>
        <td>
            <asp:TextBox ID="txtSourceMissileCode" runat="server" Width="150px"></asp:TextBox>
            <input id="bt3" onclick="showPage3()" type="button" value="选择" /><asp:HiddenField 
                ID="hidSourceMissileCode" runat="server" />
          </td>
        <td>目标弹号</td>
        <td><asp:TextBox ID="txtTargeMissileCode" runat="server" Width="150px"></asp:TextBox>
            <input id="btn4" onclick="showPage4()" type="button" value="选择" /><asp:HiddenField 
                ID="hidTargeMissileCode" runat="server" />
          </td>
      </tr>
      <tr>
        <td>源工序</td>
        <td>
            <asp:TextBox ID="txtSourceProcess" runat="server" Width="150px"></asp:TextBox>
            <input id="btn5" onclick="showPage5()" type="button" value="选择" /><asp:HiddenField 
                ID="hidSourceProcess" runat="server" />
          </td>
        <td>目标工序</td>
        <td><asp:TextBox ID="txtTargeProcess" runat="server" Width="150px"></asp:TextBox>
            <input id="btn6" onclick="showPage6()" type="button" value="选择" /><asp:HiddenField 
                ID="hidTargeProcess" runat="server" />
          </td>
      </tr>
      <tr>
        <td>源零件代码</td>
        <td>
            <asp:TextBox ID="txtSourcePartCode" runat="server" Width="150px"></asp:TextBox>
          </td>
        <td>目标零件代码</td>
        <td><asp:TextBox ID="txtTargePartCode" runat="server" Width="150px"></asp:TextBox></td>
      </tr>
      <tr>
        <td>源零件号</td>
        <td>
            <asp:TextBox ID="txtSourcePartNumber" runat="server" Width="150px"></asp:TextBox>
          </td>
        <td>目标零件号</td>
        <td><asp:TextBox ID="txtTargePartNumber" runat="server" Width="150px"></asp:TextBox></td>
      </tr>
      <tr>
        <td colspan="4" align="center">
            <asp:Button ID="btnOK" runat="server" Text="确定" Width="60px" 
                onclick="btnOK_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="取消" Width="60px" 
                CausesValidation="False" onclick="btnCancel_Click" />
        </td>
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
